package com.hospital.hospitalsystem.modules.hospital.service;

import com.hospital.hospitalsystem.modules.hospital.dao.entity.DoctorPriceEntity;
import com.hospital.hospitalsystem.modules.hospital.dao.mapper.DoctorPriceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/2/23
 */
@Component
public class DoctorPriceService {

    @Autowired
    private DoctorPriceMapper doctorPriceMapper;

    public void insertSelective(DoctorPriceEntity doctorPriceEntity){
        doctorPriceMapper.insertSelective(doctorPriceEntity);
    }

    public List<DoctorPriceEntity> selectByExample(Example example) {
        return doctorPriceMapper.selectByExample(example);
    }

    public void deleteByExample(Example example){
        doctorPriceMapper.deleteByExample(example);
    }
}
